﻿#include "EntryDoubleSpinBox.h"
#include <QWheelEvent>

EntryDoubleSpinBox::EntryDoubleSpinBox(QWidget *parent) : QDoubleSpinBox{parent} {
    setFocusPolicy(Qt::StrongFocus);
}

void EntryDoubleSpinBox::wheelEvent(QWheelEvent *event) {
    if(hasFocus()) {
        QDoubleSpinBox::wheelEvent(event);
    } else {
        event->ignore();
    }
}
